package cn.eyesea.cc.frame.enums;

/**
 * 结果类型
 *
 * @author wanghuilong
 * @version 1.0
 * @date 2021/6/27 2:57 下午
 */
public enum ResultTypeEnum {

    XML(true, "xml文件", ".xml"),
    JAVA_INTERFACE(true, "java接口文件", ".java"),
    JAVA_CLASS(true, "java类文件", ".java"),
    JAVA_VARIABLE(false, "java变量", null);

    /**
     * 是否为文件
     */
    private Boolean isFile;

    private String desc;

    /**
     * 文件后缀
     */
    private String filExtension;

    ResultTypeEnum(Boolean isFile, String desc, String filExtension) {
        this.isFile = isFile;
        this.desc = desc;
        this.filExtension = filExtension;
    }

    public Boolean getIsFile() {
        return isFile;
    }

    public String getFilExtension() {
        return filExtension;
    }
}
